package com.zan.onelevel.test;

/**
 * @Author Zan
 * @Date 2023/12/1 19:12
 * @Description :
 */
public class Student {
    public String name;
    public String language;
    public Student next;

    public Student(String name, String language) {
        this.name = name;
        this.language = language;
        next = null;
    }

    public Student() {
        next = null;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", language='" + language + '\'' +
                ", next=" + next +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public Student getNext() {
        return next;
    }

    public void setNext(Student next) {
        this.next = next;
    }
}
